﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using MvcMall.AdminPortal.Controllers.ArticleCategory.ViewModels;
using MvcMall.Core.Domains;

namespace MvcMall.AdminPortal.Controllers.Article.ViewModels
{
    /// <summary>
    /// 文章信息
    /// </summary>
    public class ArticleModel
    {
        /// <summary>
        /// 文章ID
        /// </summary>
        public int? ArticleId { get; set; }

        /// <summary>
        /// 文章标题
        /// </summary>
        [Display(Name = "文章标题")]
        [StringLength(128)]
        [Required]
        public string Title { get; set; }

        /// <summary>
        /// 文章分类
        /// </summary>
        [Display(Name = "文章分类")]
        [Required]
        public int ArticleCategoryId { get; set; }

        /// <summary>
        /// 文章分类名称
        /// </summary>
        public string ArticleCategoryIdName { get; set; }

        /// <summary>
        /// 文章内容
        /// </summary> 
        [Display(Name = "文章内容")]
        [Required]
        public string Content { get; set; }

        /// <summary>
        /// 排序编号
        /// </summary> 
        [Display(Name = "排序编号")]
        [Required]
        public int SortOrder { get; set; }

        /// <summary>
        /// 是否显示
        /// </summary> 
        [Display(Name = "是否显示")]
        public bool IsShow { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        public DateTime CreateTime { get; set; }

    }
}
